package com.sgb.kjwl.view.ui.adapter;


import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sgb.kjwl.R;
import com.sgb.kjwl.model.entity.transport.SingleItemEntity;
import com.sgb.kjwl.utils.DefaultUtil;

import java.util.List;

/**
 * @author: 杨畔
 * @date: 2020/12/29 16:59
 * @Description: 发布货源发票信息适配器
 */
public class CargoInvoiceAdapter extends BaseQuickAdapter<SingleItemEntity, BaseViewHolder> {
    public CargoInvoiceAdapter(@Nullable List<SingleItemEntity> data) {
        super(R.layout.item_cargo_company_invoice, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SingleItemEntity item) {
        helper.setText(R.id.tv_item_cargo_more_title, DefaultUtil.getString(item.getLeftString()))
                .setText(R.id.tv_item_cargo_more_content, DefaultUtil.getString(item.getRightString()));
    }
}
